//
//  SummaryViewController.m
//  界面切换tabBar方式
//
//  Created by student on 16/2/22.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "SummaryViewController.h"


@interface SummaryViewController ()

@property (weak, nonatomic) IBOutlet UILabel *labelView;

@end

@implementation SummaryViewController

-(void)viewWillAppear:(BOOL)animated{
    [self.labelView setText:[NSString stringWithFormat:@"总共计算了%i次",self.count]];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.count = 0;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
